package com.yongbao.model.dtomapper;

import com.yongbao.model.domain.DishSpecificationDO;
import com.yongbao.model.request.DishSpecificationRequest;
import com.yongbao.model.vo.DishSpecificationVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface DishSpecificationDtoMapper {

    DishSpecificationDtoMapper INSTANCE = Mappers.getMapper(DishSpecificationDtoMapper.class);

    /**
    * DO to VO
    * @param dishSpecificationDO
    * @return
    */
    DishSpecificationVO do2VO(DishSpecificationDO dishSpecificationDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    DishSpecificationDO request2DO(DishSpecificationRequest request);
}
